package cn.botter.subject.domain.convert;

import cn.botter.subject.domain.entity.SubjectInfoBO;
import cn.botter.subject.domain.entity.SubjectLabelBO;
import cn.botter.subject.domain.entity.SubjectOptionBO;
import cn.botter.subject.infra.basic.entity.SubjectInfo;
import cn.botter.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    /**
     *
     * @param subjectInfoBO
     * @return
     */
    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);


    List<SubjectInfoBO> convertListInfoToBO(List<SubjectInfo> subjectInfoList);

    SubjectInfoBO convertInfoToBO(SubjectInfo subjectInfo);
}
